﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace robotGUI
{
    
    public partial class IndicatorControl : UserControl
    {
        public string Caption { get { return label1.Text; } set { label1.Text = value; } }
        public Image Image { get { return pictureBox1.Image; } set { pictureBox1.Image = value; } }
        public IndicatorControl()
        {
            InitializeComponent();
        }
        bool state = false;
        public bool State
        {
            get { return state; }
            set
            {
                if (value) pictureBox1.Image = Properties.Resources.ball_on;
                else pictureBox1.Image = Properties.Resources.ball_off;
                state = value;
            }
        }
    }
}
